docs.rs failed to build playdate-controls-0.3.4
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
playdate-controls-0.3.2
Controls API for PlayDate
High-level controls API built on-top of playdate-sys.
Covered components: buttons, accelerometer and crank.
Prerequisites
- Rust nightly toolchain (rustup is optional)
- Playdate SDK
- Follow the official documentation
- Follow the instructions for playdate-sys
Usage
Buttons:
extern crate playdate_controls as controls;
// Get buttons state
let buttons = get;
if buttons.current.a
if buttons.pushed.b
if buttons.released.b
Accelerometer:
extern crate playdate_controls as controls;
// Turn on the accelerometer
enable;
// Get accelerometer data
let = get;
println!;
See more in examples.
This software is not sponsored or supported by Panic.